﻿import request from '/@/utils/request';
enum Api {
  AddDoorInOutRecord = '/api/doorInOutRecord/add',
  DeleteDoorInOutRecord = '/api/doorInOutRecord/delete',
  UpdateDoorInOutRecord = '/api/doorInOutRecord/update',
  SaveDoorInOutRecord = '/api/doorInOutRecord/save',
  PageDoorInOutRecord = '/api/doorInOutRecord/page',
  ExportDoorInOutRecord = 'api/doorInOutRecord/export',
  ImportUrl= 'api/doorInOutRecord/import',
  downLoadTemplate = 'api/doorInOutRecord/TemplateDown',
}

//导出人臉門禁出入記錄
export const exportDoorInOutRecordExcel=(params?:any)=>
	request({
		url:Api.ExportDoorInOutRecord,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加人臉門禁出入記錄
export const addDoorInOutRecord = (params?: any) =>
	request({
		url: Api.AddDoorInOutRecord,
		method: 'post',
		data: params,
	});

// 删除人臉門禁出入記錄
export const deleteDoorInOutRecord = (params?: any) => 
	request({
			url: Api.DeleteDoorInOutRecord,
			method: 'post',
			data: params,
		});

// 编辑人臉門禁出入記錄
export const updateDoorInOutRecord = (params?: any) => 
	request({
			url: Api.UpdateDoorInOutRecord,
			method: 'post',
			data: params,
		});

// 保存人臉門禁出入記錄
export const saveDoorInOutRecord = (params?: any) => 
	request({
			url: Api.SaveDoorInOutRecord,
			method: 'post',
			data: params,
		});

// 分页查询人臉門禁出入記錄
export const pageDoorInOutRecord = (params?: any) => 
	request({
			url: Api.PageDoorInOutRecord,
			method: 'post',
			data: params,
		});

export const importUrl = () => {return Api.ImportUrl;};
export const downLoadTemplate = ()=>{return Api.downLoadTemplate ;};



